package com.ww.scm.repository.mat;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.ww.core.orm.hibernate.HibernateDao;
import com.ww.core.utils.DateUtils;
import com.ww.scm.constants.Constants;
import com.ww.scm.entity.mat.FinanceAccount;
import com.ww.scm.entity.mat.FinanceWastebook;;

//Spring Bean的标识.
@Component
public class FinanceWastebookRepository extends HibernateDao<FinanceWastebook, String>{

	public void delete(FinanceWastebook financeWastebook, String operator) {
		Date nowDate = new Date();
		financeWastebook.setSysFlag(Constants.SYS_FLAG_DELETED);
		financeWastebook.setLastModifier(operator);
		financeWastebook.setLastModifiedTime(DateUtils.formatDateHms(nowDate));
		save(financeWastebook);
	}
	
	
}
